<div class="col-mb-12 col-offset-1 col-3 kit-hidden-tb" id="secondary" role="complementary">
    <section class="widget">
        <h3 class="widget-title">最新文章</h3>
        <ul class="widget-list">
            {% for post in newestPosts %} 
            <li>
                <a href="/posts/detail?id={{post.cid}}">{{post.title}}</a>
            </li>
            {% else %}
            
            {% endfor %}
        </ul>
    </section>

    <section class="widget">
        <h3 class="widget-title">分类</h3>
        <ul class="widget-list">
                {% for category in categories %} 
            <li class="category-level-0 category-parent">
                <a href="/posts/category?id={{category.mid}}">{{category.name}}</a>
                <ul class="widget-list">
                        {% for subCategory in category.children %} 
                    <li class="category-level-1 category-child category-level-odd">
                        <a href="/posts/category?id={{subCategory.mid}}">{{subCategory.name}}</a>
                    </li>
                    {% endfor %}
                </ul>
            </li>
            {% endfor %}
        </ul>
    </section>

    <section class="widget">
        <h3 class="widget-title">归档</h3>
        <ul class="widget-list">
            <li>
                <a href="http://www.typecho.local/index.php/2018/02/">February 2018</a>
            </li>
        </ul>
    </section>

    <section class="widget">
        <h3 class="widget-title">其它</h3>
        <ul class="widget-list">
            <li class="last">
                <a href="/admin/">进入后台 (admin)</a>
            </li>
            <li>
                <a href="/admin/logout/index">退出</a>
            </li>
            <li>
                <a href="https://github/tumobi/thincho">Thincho</a>
            </li>
        </ul>
    </section>

</div>
<!-- end #sidebar -->